import pandas as pd
import numpy as np

df3 = pd.DataFrame({
    'A': 1,
    'B': pd.Timestamp('20250507'),
    'C': pd.Series(1, index=list(range(4)), dtype='float32'),
    'D': np.array([3] * 4, dtype='int32'),
    'E': pd.Categorical(["test", "train", "test", "train"]),
    'F': 'foo'
})

# print(df3)
# print(df3.dtypes)

print(df3.sort_values(by='E'))